home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Dialog2 / c / EnsureWind < prev    next >
Encoding:
Text File  |  1995-05-19  |  916 b   |  31 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    Dialog2.EnsureWind.c
  12.     Author:  Copyright © 1994 Julian Smith
  13.     Version: 1.03 (13 Mar 1995)
  14.     Purpose: Dialogue box handling
  15. */
  16.  
  17.  
  18. #include "DeskLib:Window.h"
  19. #include "DeskLib:Dialog2.h"
  20.  
  21.  
  22. void    Dialog2_EnsureWindowHandle( dialog2_block *dialog2)
  23. {
  24. if ( !dialog2->window)
  25.     dialog2->window = Window_Create( 
  26.         dialog2->templatename, dialog2->flags.data.maxtitlesize
  27.         );
  28. }
  29.  
  30.  
  31.